# 1 "../Codes/LCD/HT162X_Parts.c"
# 1 "E:\\APT_Landscape_mode\\APT32F1023_New\\Source//"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "../Codes/LCD/HT162X_Parts.c"


# 1 "../Codes/LCD/UI.h" 1

# 1 "../Codes/LCD/HT162X_Parts.h" 1





typedef enum
{
 Char_ON= 0,
    Char_OFF,
}Char_E;

void Lcd_F(Char_E dis);
void Lcd_C(Char_E dis);
void Lcd_Wifi(Char_E dis);
void Lcd_Cook(Char_E dis);
void Lcd_PSet(Char_E dis);
void Lcd_Timer_Colon(Char_E dis);
void Lcd_Probe1_Show(Char_E dis);
void Lcd_Probe2_Show(Char_E dis);
void Lcd_Actual(Char_E dis);

void Lcd_Parts_Init(void);
void Lcd_Parts_NotShow(void);
# 3 "../Codes/LCD/UI.h" 2
# 1 "../Codes/LCD/../Y36_LCD_horizontal/App_Main.h" 1







# 1 "../Codes/LCD/../Y36_LCD_horizontal/temperature_control_sub_module/TempSysType.h" 1




# 1 "d:\\c-sky\\cdkrepo\\toolchain\\ckv2elfminilib\\v3.10.32\\r\\lib\\gcc\\csky-elfabiv2\\6.3.0\\include\\stdbool.h" 1 3 4
# 6 "../Codes/LCD/../Y36_LCD_horizontal/temperature_control_sub_module/TempSysType.h" 2
# 24 "../Codes/LCD/../Y36_LCD_horizontal/temperature_control_sub_module/TempSysType.h"
typedef enum
{
    Pt_Normal,
    Pt_Open,
    Pt_Short,
    Pt_LowTemp,
    Pt_HighTemp,
}_Pt_Status;
# 9 "../Codes/LCD/../Y36_LCD_horizontal/App_Main.h" 2
# 1 "../Codes/LCD/../Y36_LCD_horizontal/temperature_control_sub_module/TempADC.h" 1




# 1 "../Codes/Y36_LCD_horizontal/typed.h" 1





typedef signed char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;

typedef unsigned short uint16_t;

typedef unsigned long long uint64_t;
# 1 "include/apt32f102_ck801.h" 1
# 85 "include/apt32f102_ck801.h"
typedef enum IRQn
{

        ISR_Restart = -32,
        ISR_Misaligned_Access = -31,
        ISR_Access_Error = -30,
        ISR_Divided_By_Zero = -29,
        ISR_Illegal = -28,
        ISR_Privlege_Violation = -27,
        ISR_Trace_Exection = -26,
        ISR_Breakpoint_Exception = -25,
        ISR_Unrecoverable_Error = -24,
        ISR_Idly4_Error = -23,
        ISR_Auto_INT = -22,
        ISR_Auto_FINT = -21,
        ISR_Reserved_HAI = -20,
        ISR_Reserved_FP = -19,
        ISR_TLB_Ins_Empty = -18,
        ISR_TLB_Data_Empty = -17,

        INTC_CORETIM_IRQn = 0,
        INTC_TIME1_IRQn = 1,
        INTC_UART0_IRQn = 2,
        INTC_GPIOA2_IRQn = 8,
} IRQn_Type;


void INTC_Init(void);
void force_interrupt(IRQn_Type IRQn);

void CK_CPU_EnAllNormalIrq(void);
void CK_CPU_DisAllNormalIrq(void);
# 15 "../Codes/Y36_LCD_horizontal/typed.h" 2
# 6 "../Codes/LCD/../Y36_LCD_horizontal/temperature_control_sub_module/TempADC.h" 2
# 1 "../Codes/LCD/../Y36_LCD_horizontal/temperature_control_sub_module/TempSysType.h" 1
# 7 "../Codes/LCD/../Y36_LCD_horizontal/temperature_control_sub_module/TempADC.h" 2

extern unsigned char ch;







extern double (*ADC_Convert_R)(unsigned int ad);
extern void (*TempADC_Delay0ms_Output)(void);


typedef struct __RTD
{
    int32_t value;
    _Pt_Status status;
}_RTD;
extern _RTD RTD[3];
# 48 "../Codes/LCD/../Y36_LCD_horizontal/temperature_control_sub_module/TempADC.h"
extern unsigned char LowTemp_Ctrl;

void ADInit(void);
void ADC_Clock(void);
void ADSampling(void);
void TempADC_Main(void);
void LowTempAlarm(void);
void ADC_KeyUpDown(void);
# 10 "../Codes/LCD/../Y36_LCD_horizontal/App_Main.h" 2
# 1 "../Codes/LCD/../Y36_LCD_horizontal/temperature_control_sub_module/ADC_Model.h" 1





typedef struct
{
    int16_t oven;
    uint16_t oven_set;
    _Pt_Status oven_Err;
    int16_t probe1;
    uint16_t probe1_set;
    uint16_t probe1_Err;
    int16_t probe2;
    uint16_t probe2_set;
    uint16_t probe2_Err;
    unsigned int timer;
    unsigned char p_value;
}_Temp_Param;
extern _Temp_Param Temp_Param;

void adc_model_init(void);
# 11 "../Codes/LCD/../Y36_LCD_horizontal/App_Main.h" 2
# 1 "../Codes/LCD/../Y36_LCD_horizontal/temperature_control_sub_module/pid.h" 1




typedef struct
{
 double i32Q12_Kp_coef;
 double i32Q12_Ki_coef;
    double i32Q12_Kp;
    double i32Q12_Ki;
 double i32Q12_Kd;
    double i32Q27_OutMin;
    double i32Q27_OutMax;

} stc_pid_para_t;



typedef struct
{
 char u8En;
 int i32Q15_Ref;
 int i32Q15_Fbk;
 double i32Q27_Output;
 int i32Q15_Err;

 double i32Q27_Iout;
 int i32Q27_FdFwd;
 char u8IntegralLmtFlg;
 int i32Q15_LastErr;
 int i32Q15_LastErrInc;
}stc_pi_t;

extern stc_pid_para_t pid_para_t;

void PI_Ctrl(stc_pi_t *pstc, stc_pid_para_t *stcPIParam,int grill_temperature,int temp_set);
# 12 "../Codes/LCD/../Y36_LCD_horizontal/App_Main.h" 2
# 1 "../Codes/LCD/../Y36_LCD_horizontal/temperature_control_sub_module/FanCtrl.h" 1
# 32 "../Codes/LCD/../Y36_LCD_horizontal/temperature_control_sub_module/FanCtrl.h"
extern uint16_t temp_set;
extern unsigned char Smoke_P_Value;
extern unsigned char IgniterStep;
extern unsigned char HeatingFanStep;
extern uint16_t ExhaustFanClock;





void FanCtrlInit(void);
void FanCtrlClock(void);
void FanCtrlStart(void);
void FanCtrlStop(void);
void FanCtrlForceStop(void);
void HeatingFanCtrl(void);
void ExhaustFanCtrl(void);
void IgniterCtrl(void);
# 13 "../Codes/LCD/../Y36_LCD_horizontal/App_Main.h" 2
# 1 "../Codes/LCD/../Y36_LCD_horizontal/temperature_control_sub_module/Buzzer.h" 1







void Buzzer_config(void);
void Buzzer_Probe_config(void);
void Buzzer_Stop(void);

void Buzzer_clock(void);
# 14 "../Codes/LCD/../Y36_LCD_horizontal/App_Main.h" 2

# 1 "../Codes/LCD/../Y36_LCD_horizontal/Tool.h" 1



typedef enum
{
    nums_units = 1,
    nums_tens = 10,
    nums_hundreds = 100,
}_Num_unit;

typedef enum
{
    Pt1000_Normal = 0,
    Pt1000_Short,
    Pt1000_Open,
}_Pt1000_State;
extern _Pt1000_State Pt1000_State;


unsigned int GetNums(unsigned int dat,_Num_unit bit);
double AD_Convert_R(unsigned int ad);
float V_Convert_R(float Vdd,float V_Div);
double Quadratic_F(double R_x);
# 16 "../Codes/LCD/../Y36_LCD_horizontal/App_Main.h" 2
# 1 "../Codes/LCD/../Y36_LCD_horizontal/Keyboard.h" 1
# 11 "../Codes/LCD/../Y36_LCD_horizontal/Keyboard.h"
typedef struct
{
    unsigned char once1;
    unsigned char once2;
    unsigned char once3;
}_key_param;

typedef enum
{
    PSet_0 = 1,
    PSet_1 = 2,
    PSet_2 = 3,
    PSet_3 = 4,
    PSet_4 = 5,
    PSet_5 = 6,
    PSet_6 = 7,
    PSet_7 = 8,
}PSet_E;


extern unsigned char key_pset;
extern unsigned char key_ONOFF;
extern _key_param key_param;
extern unsigned char Prime_Enable;

void Key_IOConfig(void);
void keyboard_delay15ms(void);
void Key_init(void);
void KeyDetection(void);
# 17 "../Codes/LCD/../Y36_LCD_horizontal/App_Main.h" 2
# 1 "../Codes/LCD/../Y36_LCD_horizontal/Switch.h" 1



extern unsigned char switch_ONOFF;
extern uint16_t Switch_State;
extern unsigned char Switch_Active;

void Switch_IOConfig(void);
void switch_clock(void);
void SwitchKey(void);
# 18 "../Codes/LCD/../Y36_LCD_horizontal/App_Main.h" 2
# 1 "../Codes/LCD/../Y36_LCD_horizontal/chip.h" 1

# 1 "include/apt32f102_gpio.h" 1
# 23 "include/apt32f102_gpio.h"
# 1 "include/apt32f102.h" 1
# 23 "include/apt32f102.h"
# 1 "include/apt32f102_types_local.h" 1
# 63 "include/apt32f102_types_local.h"
typedef signed char S8_T;
typedef short S16_T;
typedef long S32_T;


typedef unsigned char U8_T;
typedef unsigned short U16_T;
typedef unsigned long U32_T;
typedef unsigned long long U64_T;


typedef float F32_T;
typedef double F64_T;


typedef U8_T B_T;
# 100 "include/apt32f102_types_local.h"
typedef enum {ENABLE = 1, DISABLE = !ENABLE} ClockStatus, FunctionalStatus;
typedef enum {ERROR = 0, SUCCESS = !ERROR} ErrorStatus;
typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus;




typedef volatile U32_T CSP_REGISTER_T;
typedef volatile U16_T CSP_REGISTER16_T;
typedef volatile U8_T CSP_REGISTER8_T;




typedef unsigned char UINT8;
typedef signed char SINT8;


typedef unsigned short UINT16;
typedef signed short SINT16;


typedef unsigned long UINT32;
typedef signed long SINT32;

typedef void VOID;
typedef signed char CHAR;
typedef unsigned char BOOL;
typedef signed long TIME_T;

typedef float SINGLE;



typedef double DOUBLE;

typedef struct
{
  unsigned bit0 : 1;
  unsigned bit1 : 1;
  unsigned bit2 : 1;
  unsigned bit3 : 1;
  unsigned bit4 : 1;
  unsigned bit5 : 1;
  unsigned bit6 : 1;
  unsigned bit7 : 1;
} REG8;

typedef struct
{
  unsigned bit0 : 1;
  unsigned bit1 : 1;
  unsigned bit2 : 1;
  unsigned bit3 : 1;
  unsigned bit4 : 1;
  unsigned bit5 : 1;
  unsigned bit6 : 1;
  unsigned bit7 : 1;
  unsigned bit8 : 1;
  unsigned bit9 : 1;
  unsigned bit10: 1;
  unsigned bit11: 1;
  unsigned bit12: 1;
  unsigned bit13: 1;
  unsigned bit14: 1;
  unsigned bit15: 1;
} REG16;






typedef char STRING_3[4];
typedef char STRING_5[6];
typedef char STRING_8[9];
typedef char STRING_10[11];
typedef char STRING_12[13];
typedef char STRING_16[17];
typedef char STRING_24[25];
typedef char STRING_30[31];
typedef char STRING_32[33];
typedef char STRING_48[49];
typedef char STRING_50[51];
typedef char STRING_60[61];
typedef char STRING_80[81];
typedef char STRING_132[133];
typedef char STRING_256[257];
typedef char STRING_512[513];
# 24 "include/apt32f102.h" 2
# 1 "include/apt32f102_ck801.h" 1
# 25 "include/apt32f102.h" 2




typedef struct {
 volatile unsigned int ReservedA[4];
 volatile unsigned int CORET_CSR;
 volatile unsigned int CORET_RVR;
 volatile unsigned int CORET_CVR;
 volatile unsigned int CORET_CALIB;
 volatile unsigned int ReservedB[56];
 volatile unsigned int ISER;
 volatile unsigned int ReservedC[15];
 volatile unsigned int IWER;
 volatile unsigned int ReservedD[15];
 volatile unsigned int ICER;
 volatile unsigned int ReservedE[15];
 volatile unsigned int IWDR;
 volatile unsigned int ReservedF[15];
 volatile unsigned int ISPR;
 volatile unsigned int ReservedG[31];
 volatile unsigned int ICPR;
 volatile unsigned int ReservedH[31];
 volatile unsigned int IABR;
 volatile unsigned int ReservedI[63];
 volatile unsigned int IPR[8];
 volatile unsigned int ReservedJ[504];
 volatile unsigned int ISR;
 volatile unsigned int IPTR;
} CSP_CK801_T;



typedef volatile struct {
 volatile unsigned int IDR ;
 volatile unsigned int CEDR ;
 volatile unsigned int SRR ;
 volatile unsigned int CMR ;
 volatile unsigned int CR ;
 volatile unsigned int MR ;
 volatile unsigned int FM_ADDR ;
 volatile unsigned int Reserved ;
 volatile unsigned int KR ;
 volatile unsigned int IMCR ;
 volatile unsigned int RISR ;
 volatile unsigned int MISR ;
 volatile unsigned int ICR ;
} CSP_IFC_T ;



typedef volatile struct {
 volatile unsigned int IDCCR;
 volatile unsigned int GCER;
 volatile unsigned int GCDR;
 volatile unsigned int GCSR;
 volatile unsigned int CKST;
 volatile unsigned int RAMCHK;
 volatile unsigned int EFLCHK;
 volatile unsigned int SCLKCR;
 volatile unsigned int PCLKCR;
 volatile unsigned int _RSVD0;
 volatile unsigned int PCER0;
 volatile unsigned int PCDR0;
 volatile unsigned int PCSR0;
 volatile unsigned int PCER1;
 volatile unsigned int PCDR1;
 volatile unsigned int PCSR1;
 volatile unsigned int OSTR;
 volatile unsigned int _RSVD1;
 volatile unsigned int _RSVD2;
 volatile unsigned int LVDCR;
 volatile unsigned int CLCR;
 volatile unsigned int PWRCR;
 volatile unsigned int PWRKEY;
 volatile unsigned int _RSVD3;
 volatile unsigned int _RSVD4;
 volatile unsigned int OPT1;
 volatile unsigned int OPT0;
 volatile unsigned int WKCR;
 volatile unsigned int _RSVD5;
 volatile unsigned int IMER;
 volatile unsigned int IMDR;
 volatile unsigned int IMCR;
 volatile unsigned int IAR;
 volatile unsigned int ICR;
 volatile unsigned int RISR;
 volatile unsigned int MISR;
 volatile unsigned int RSR;
 volatile unsigned int EXIRT;
 volatile unsigned int EXIFT;
 volatile unsigned int EXIER;
 volatile unsigned int EXIDR;
 volatile unsigned int EXIMR;
 volatile unsigned int EXIAR;
 volatile unsigned int EXICR;
 volatile unsigned int EXIRS;
 volatile unsigned int IWDCR;
 volatile unsigned int IWDCNT;
 volatile unsigned int IWDEDR;
 volatile unsigned int IOMAP0;
 volatile unsigned int IOMAP1;
 volatile unsigned int CINF0;
 volatile unsigned int CINF1;
 volatile unsigned int FINF0;
 volatile unsigned int FINF1;
 volatile unsigned int FINF2;
 volatile unsigned int _RSVD6;
 volatile unsigned int ERRINF;
 volatile unsigned int UID0 ;
 volatile unsigned int UID1 ;
 volatile unsigned int UID2 ;
 volatile unsigned int PWROPT;
 volatile unsigned int EVTRG;
 volatile unsigned int EVPS;
 volatile unsigned int EVSWF;
 volatile unsigned int UREG0;
 volatile unsigned int UREG1;
 volatile unsigned int UREG2;
 volatile unsigned int UREG3;
} CSP_SYSCON_T;



 typedef volatile struct
 {
    volatile unsigned int EN;
    volatile unsigned int SWTRG;
    volatile unsigned int CH0CON0;
    volatile unsigned int CH0CON1;
    volatile unsigned int CH1CON0;
    volatile unsigned int CH1CON1;
    volatile unsigned int CH2CON0;
    volatile unsigned int CH2CON1;
 volatile unsigned int _RSVD0;
 volatile unsigned int _RSVD1;
 volatile unsigned int _RSVD2;
 volatile unsigned int _RSVD3;
    volatile unsigned int CH3CON;
 volatile unsigned int CH4CON;
 volatile unsigned int CH5CON;
 volatile unsigned int CH6CON;
 volatile unsigned int CH7CON;
 } CSP_ETCB_T, *CSP_ETCB_PTR;



typedef volatile struct
{
   volatile unsigned int TCH_CCR;
   volatile unsigned int TCH_CON0;
   volatile unsigned int TCH_CON1;
   volatile unsigned int TCH_SCCR;
   volatile unsigned int TCH_SENPRD;
   volatile unsigned int TCH_VALBUF;
   volatile unsigned int TCH_SENCNT;
   volatile unsigned int TCH_TCHCNT;
   volatile unsigned int TCH_THR;
   volatile unsigned int Reserved0;
   volatile unsigned int TCH_RISR;
   volatile unsigned int TCH_IER;
   volatile unsigned int TCH_ICR;
   volatile unsigned int TCH_RWSR;
   volatile unsigned int TCH_OVW_THR;
   volatile unsigned int TCH_OVF;
   volatile unsigned int TCH_OVT;
   volatile unsigned int TCH_SYNCR;
   volatile unsigned int TCH_EVTRG;
   volatile unsigned int TCH_EVPS;
   volatile unsigned int TCH_EVSWF;
} CSP_TKEY_T, *CSP_TKEY_PTR;



typedef volatile struct
{
   volatile unsigned int TCH_CHVAL[18];
   volatile unsigned int TCH_SEQCON[18];
} CSP_TKEYBUF_T, *CSP_TKEYBUF_PTR;



 typedef volatile struct
 {
    volatile unsigned int ECR;
    volatile unsigned int DCR;
    volatile unsigned int PMSR;
    volatile unsigned int Reserved0;
    volatile unsigned int CR;
    volatile unsigned int MR;
    volatile unsigned int SHR;
    volatile unsigned int CSR;
    volatile unsigned int SR;
    volatile unsigned int IER;
    volatile unsigned int IDR;
    volatile unsigned int IMR;
    volatile unsigned int SEQ[16];
    volatile unsigned int PRI;
    volatile unsigned int TDL0;
    volatile unsigned int TDL1;
    volatile unsigned int SYNCR;
    volatile unsigned int Reserved1;
    volatile unsigned int Reserved2;
    volatile unsigned int EVTRG;
    volatile unsigned int EVPS;
    volatile unsigned int EVSWF;
    volatile unsigned int ReservedD[27];
    volatile unsigned int DR[16];
    volatile unsigned int CMP0;
    volatile unsigned int CMP1;
 volatile unsigned int DRMASK;
 } CSP_ADC12_T, *CSP_ADC12_PTR;



 typedef volatile struct
 {
    volatile unsigned int CONLR;
    volatile unsigned int CONHR;
    volatile unsigned int WODR;
    volatile unsigned int SODR;
    volatile unsigned int CODR;
    volatile unsigned int ODSR;
    volatile unsigned int PSDR;
    volatile unsigned int FLTEN;
    volatile unsigned int PUDR;
    volatile unsigned int DSCR;
    volatile unsigned int OMCR;
    volatile unsigned int IECR;
 volatile unsigned int IEER;
 volatile unsigned int IEDR;
 } CSP_GPIO_T, *CSP_GPIO_PTR;

 typedef volatile struct
 {
 volatile unsigned int IGRPL;
    volatile unsigned int IGRPH;
 volatile unsigned int IGREX;
    volatile unsigned int IO_CLKEN;
 } CSP_IGRP_T, *CSP_IGRP_PTR;



 typedef volatile struct
 {
    volatile unsigned int DATA;
    volatile unsigned int SR;
    volatile unsigned int CTRL;
    volatile unsigned int ISR;
    volatile unsigned int BRDIV;
    volatile unsigned int ReservedA[20];
 } CSP_UART_T, *CSP_UART_PTR;



typedef struct
{
 volatile unsigned int CR0;
 volatile unsigned int CR1;
 volatile unsigned int DR;
 volatile unsigned int SR;
 volatile unsigned int CPSR;
 volatile unsigned int IMSCR;
 volatile unsigned int RISR;
 volatile unsigned int MISR;
 volatile unsigned int ICR;
} CSP_SSP_T, *CSP_SSP_PTR;



typedef struct
{
 volatile unsigned int CR;
 volatile unsigned int TXCR0;
 volatile unsigned int TXCR1;
 volatile unsigned int TXBUF;
 volatile unsigned int RXCR0;
 volatile unsigned int RXCR1;
 volatile unsigned int RXCR2;
 volatile unsigned int RXBUF;
 volatile unsigned int RISR;
 volatile unsigned int MISR;
 volatile unsigned int IMCR;
 volatile unsigned int ICR;
} CSP_SIO_T, *CSP_SIO_PTR;



 typedef volatile struct
 {
    unsigned int CR;
    unsigned int TADDR;
    unsigned int SADDR;
    unsigned int ReservedD;
    unsigned int DATA_CMD;
    unsigned int SS_SCLH;
    unsigned int SS_SCLL;
    unsigned int FS_SCLH;
    unsigned int FS_SCLL;
    unsigned int ReservedA;
    unsigned int ReservedC;
    unsigned int RX_FLSEL;
    unsigned int TX_FLSEL;
    unsigned int RX_FL;
    unsigned int TX_FL;
    unsigned int ENABLE;
    unsigned int STATUS;
    unsigned int ReservedB;
    unsigned int SDA_TSETUP;
    unsigned int SDA_THOLD;
    unsigned int SPKLEN;

    unsigned int ReservedE;
 unsigned int MISR;
    unsigned int IMSCR;
    unsigned int RISR;
    unsigned int ICR;
    unsigned int ReservedF;
    unsigned int SCL_TOUT;
    unsigned int SDA_TOUT;
    unsigned int TX_ABRT;
    unsigned int GCALL;
    unsigned int NACK;
 } CSP_I2C_T, *CSP_I2C_PTR;



 typedef struct
 {
    volatile unsigned int CADATAH;
    volatile unsigned int CADATAL;
    volatile unsigned int CACON;
    volatile unsigned int INTMASK;
 } CSP_CA_T, *CSP_CA_PTR;



 typedef struct
 {
 volatile unsigned int CEDR;
 volatile unsigned int RSSR;
 volatile unsigned int PSCR;
 volatile unsigned int CR;
 volatile unsigned int SYNCR;
 volatile unsigned int GLDCR;
 volatile unsigned int GLDCFG;
 volatile unsigned int GLDCR2;
 volatile unsigned int Reserved0;
 volatile unsigned int PRDR;
 volatile unsigned int Reserved1;
 volatile unsigned int CMPA;
 volatile unsigned int CMPB;
 volatile unsigned int Reserved2;
 volatile unsigned int Reserved3;
 volatile unsigned int CMPLDR;
 volatile unsigned int CNT;
 volatile unsigned int AQLDR;
 volatile unsigned int AQCRA;
 volatile unsigned int AQCRB;
 volatile unsigned int Reserved4;
 volatile unsigned int Reserved5;
 volatile unsigned int Reserved6;
 volatile unsigned int AQOSF;
 volatile unsigned int AQCSF;
 volatile unsigned int Reserved7;
 volatile unsigned int Reserved8;
 volatile unsigned int Reserved9;
 volatile unsigned int Reserved10;
 volatile unsigned int Reserved11;
 volatile unsigned int Reserved12;
 volatile unsigned int Reserved13;
 volatile unsigned int Reserved14;
 volatile unsigned int Reserved15;
 volatile unsigned int Reserved16;
 volatile unsigned int Reserved17;
 volatile unsigned int Reserved18;
 volatile unsigned int Reserved19;
 volatile unsigned int Reserved20;
 volatile unsigned int Reserved21;
 volatile unsigned int Reserved22;
 volatile unsigned int Reserved23;
 volatile unsigned int Reserved24;
 volatile unsigned int Reserved25;
 volatile unsigned int Reserved26;
 volatile unsigned int Reserved27;
 volatile unsigned int TRGFTCR;
 volatile unsigned int TRGFTWR;
 volatile unsigned int EVTRG;
 volatile unsigned int EVPS;
 volatile unsigned int EVCNTINIT;
 volatile unsigned int EVSWF;
 volatile unsigned int RISR;
 volatile unsigned int MISR;
 volatile unsigned int IMCR;
 volatile unsigned int ICR;
 volatile unsigned int REGLINK;

 }CSP_GPT_T,*CSP_GPT_PTR;



 typedef struct
 {
   volatile unsigned int CEDR;
   volatile unsigned int RSSR;
   volatile unsigned int PSCR;
   volatile unsigned int CR;
   volatile unsigned int SYNCR;
   volatile unsigned int GLDCR;
   volatile unsigned int GLDCFG;
   volatile unsigned int GLDCR2;
   volatile unsigned int HRCFG;
   volatile unsigned int PRDR;
   volatile unsigned int PHSR;
   volatile unsigned int CMPA;
   volatile unsigned int CMPB;
   volatile unsigned int CMPC;
   volatile unsigned int CMPD;
   volatile unsigned int CMPLDR;
   volatile unsigned int CNT;
   volatile unsigned int AQLDR;
   volatile unsigned int AQCRA;
   volatile unsigned int AQCRB;
   volatile unsigned int AQCRC;
   volatile unsigned int AQCRD;
   volatile unsigned int AQTSCR;
   volatile unsigned int AQOSF;
   volatile unsigned int AQCSF;
   volatile unsigned int DBLDR;
   volatile unsigned int DBCR;
   volatile unsigned int DPSCR;
   volatile unsigned int DBDTR;
   volatile unsigned int DBDTF;
   volatile unsigned int CPCR;
   volatile unsigned int EMSRC;
   volatile unsigned int EMSRC2;
   volatile unsigned int EMPOL;
   volatile unsigned int EMECR;
   volatile unsigned int EMOSR;
   volatile unsigned int Reserved;
   volatile unsigned int EMSLSR;
   volatile unsigned int EMSLCLR;
   volatile unsigned int EMHLSR;
   volatile unsigned int EMHLCLR;
   volatile unsigned int EMFRCR;
   volatile unsigned int EMRISR;
   volatile unsigned int EMMISR;
   volatile unsigned int EMIMCR;
   volatile unsigned int EMICR;
   volatile unsigned int TRGFTCR;
   volatile unsigned int TRGFTWR;
   volatile unsigned int EVTRG;
   volatile unsigned int EVPS;
   volatile unsigned int EVCNTINIT;
   volatile unsigned int EVSWF;
   volatile unsigned int RISR;
   volatile unsigned int MISR;
   volatile unsigned int IMCR;
   volatile unsigned int ICR;
   volatile unsigned int REGLINK;
   volatile unsigned int REGLINK2;
   volatile unsigned int REGPROT;
} CSP_EPT_T, *CSP_EPT_PTR;



 typedef volatile struct
 {
   volatile unsigned int CEDR;
   volatile unsigned int RSSR;
   volatile unsigned int PSCR;
   volatile unsigned int CR;
   volatile unsigned int SYNCR;
   volatile unsigned int PRDR;
   volatile unsigned int CMP;
   volatile unsigned int CNT;
   volatile unsigned int TRGFTCR;
   volatile unsigned int TRGFTWR;
   volatile unsigned int EVTRG;
   volatile unsigned int EVPS;
   volatile unsigned int EVSWF;
   volatile unsigned int RISR;
   volatile unsigned int MISR;
   volatile unsigned int IMCR;
   volatile unsigned int ICR;
} CSP_LPT_T, *CSP_LPT_PTR;



 typedef struct
 {
   volatile unsigned int RSSR;
   volatile unsigned int CR;
   volatile unsigned int PSCR;
   volatile unsigned int PRDR;
   volatile unsigned int CMP;
   volatile unsigned int CNT;
   volatile unsigned int EVTRG;
   volatile unsigned int EVPS;
   volatile unsigned int EVCNTINTI;
   volatile unsigned int EVSWF;
   volatile unsigned int RISR;
   volatile unsigned int IMCR;
   volatile unsigned int MISR;
   volatile unsigned int ICR;
} CSP_BT_T, *CSP_BT_PTR;



typedef struct
{
   volatile unsigned int IDR;
   volatile unsigned int CEDR;
   volatile unsigned int SRR;
   volatile unsigned int CR;
   volatile unsigned int SEED;
   volatile unsigned int DATAIN;
   volatile unsigned int DATAOUT;

} CSP_CRC_T, *CSP_CRC_PTR;



 typedef struct
 {
   volatile unsigned int TIMR;
   volatile unsigned int DATR;
   volatile unsigned int CR;
   volatile unsigned int CCR;
   volatile unsigned int ALRAR;
   volatile unsigned int ALRBR;
   volatile unsigned int SSR;
   volatile unsigned int CAL;
   volatile unsigned int RISR;
   volatile unsigned int IMCR;
   volatile unsigned int MISR;
   volatile unsigned int ICR;
   volatile unsigned int KEY;
   volatile unsigned int EVTRG;
   volatile unsigned int EVPS;
   volatile unsigned int EVSWF;
} CSP_RTC_T, *CSP_RTC_PTR;




 typedef struct
 {
  volatile unsigned int CR;
  volatile unsigned int CFGR;
  volatile unsigned int RISR;
  volatile unsigned int MISR;
  volatile unsigned int IMCR;
  volatile unsigned int ICR;
 }CSP_WWDT_T,*CSP_WWDT_PTR;



 typedef struct
 {
  volatile S32_T DIVIDENT;
  volatile S32_T DIVISOR;
  volatile S32_T QUOTIENT;
  volatile S32_T REMAIN;
  volatile unsigned int CR;
 }CSP_HWD_T,*CSP_HWD_PTR;
# 691 "include/apt32f102.h"
extern CSP_CK801_T *CK801 ;

extern CSP_IFC_T *IFC ;
extern CSP_SYSCON_T *SYSCON ;
extern CSP_ETCB_T *ETCB ;

extern CSP_TKEY_T *TKEY ;
extern CSP_TKEYBUF_T *TKEYBUF ;
extern CSP_ADC12_T *ADC0 ;

extern CSP_GPIO_T *GPIOA0 ;
extern CSP_GPIO_T *GPIOB0 ;
extern CSP_IGRP_T *GPIOGRP ;

extern CSP_UART_T *UART0 ;
extern CSP_UART_T *UART1 ;
extern CSP_UART_T *UART2 ;
extern CSP_SSP_T *SPI0 ;
extern CSP_SIO_T *SIO0 ;
extern CSP_I2C_T *I2C0 ;
extern CSP_CA_T *CA0 ;

extern CSP_GPT_T *GPT0 ;

extern CSP_EPT_T *EPT0 ;

extern CSP_LPT_T *LPT ;
extern CSP_HWD_T *HWD ;
extern CSP_WWDT_T *WWDT ;
extern CSP_BT_T *BT0 ;
extern CSP_BT_T *BT1 ;

extern CSP_CRC_T *CRC ;
extern CSP_RTC_T *RTC ;


void MisalignedHandler(void) __attribute__((isr));
void IllegalInstrHandler(void) __attribute__((isr));
void AccessErrHandler(void) __attribute__((isr));
void BreakPointHandler(void) __attribute__((isr));
void UnrecExecpHandler(void) __attribute__((isr));
void Trap0Handler(void) __attribute__((isr));
void Trap1Handler(void) __attribute__((isr));
void Trap2Handler(void) __attribute__((isr));
void Trap3Handler(void) __attribute__((isr));
void PendTrapHandler(void) __attribute__((isr));

void CORETHandler(void) __attribute__((isr));
void SYSCONIntHandler(void) __attribute__((isr));
void IFCIntHandler(void) __attribute__((isr));
void ADCIntHandler(void) __attribute__((isr));
void EPT0IntHandler(void) __attribute__((isr));
void WWDTHandler(void) __attribute__((isr));
void EXI0IntHandler(void) __attribute__((isr));
void EXI1IntHandler(void) __attribute__((isr));
void EXI2to3IntHandler(void) __attribute__((isr));
void EXI4to9IntHandler(void) __attribute__((isr));
void EXI10to15IntHandler(void) __attribute__((isr));
void UART0IntHandler(void) __attribute__((isr));
void UART1IntHandler(void) __attribute__((isr));
void UART2IntHandler(void) __attribute__((isr));
void I2CIntHandler(void) __attribute__((isr));
void GPT0IntHandler(void) __attribute__((isr));
void LEDIntHandler(void) __attribute__((isr));
void TKEYIntHandler(void) __attribute__((isr));
void SPI0IntHandler(void) __attribute__((isr));
void SIO0IntHandler(void) __attribute__((isr));
void CNTAIntHandler(void) __attribute__((isr));
void RTCIntHandler(void) __attribute__((isr));
void LPTIntHandler(void) __attribute__((isr));
void BT0IntHandler(void) __attribute__((isr));
void BT1IntHandler(void) __attribute__((isr));

extern int __divsi3 (int a, int b);
extern unsigned int __udivsi3 (unsigned int a, unsigned int b);
extern int __modsi3 (int a, int b);
extern unsigned int __umodsi3 (unsigned int a, unsigned int b);
extern void delay_nms(unsigned int t);
extern void delay_nus(unsigned int t);
# 24 "include/apt32f102_gpio.h" 2
# 33 "include/apt32f102_gpio.h"
typedef enum
{
  PIN_0 = 0,
  PIN_1 = 4,
  PIN_2 = 8,
  PIN_3 = 12,
  PIN_4 = 16,
  PIN_5 = 20,
  PIN_6 = 24,
  PIN_7 = 28,
  PIN_8 = 0,
  PIN_9 = 4,
  PIN_10 = 8,
  PIN_11 = 12,
  PIN_12 = 16,
  PIN_13 = 20,
  PIN_14 = 24,
  PIN_15 = 28,
}GPIO_Pin_TypeDef;



typedef enum
{
    LowByte = 0,
    HighByte = 1,
}GPIO_byte_TypeDef;



typedef enum
{
    Intput = 1,
    Output = 0,
}GPIO_Dir_TypeDef;



typedef enum
{
    PUDR = 0,
    DSCR =1,
    OMCR =2,
    IECR =3,
}GPIO_Mode_TypeDef;



typedef enum
{
    PA0 = 0,
    PB0 = 2,
    GPIOA = 0,
    GPIOB = 2,
}GPIO_Group_TypeDef;



typedef enum
{
    EXI0 = 0,
    EXI1 = 1,
    EXI2 = 2,
    EXI3 = 3,
    EXI4 = 4,
    EXI5 = 5,
    EXI6 = 6,
    EXI7 = 7,
    EXI8 = 8,
    EXI9 = 9,
    EXI10 = 10,
    EXI11 = 11,
    EXI12 = 12,
    EXI13 = 13,
 EXI14 = 14,
 EXI15 = 15,
}GPIO_EXI_TypeDef;




typedef enum
{
 Selete_EXI_PIN0 = (CSP_REGISTER_T)(0),
 Selete_EXI_PIN1 = (CSP_REGISTER_T)(1),
 Selete_EXI_PIN2 = (CSP_REGISTER_T)(2),
 Selete_EXI_PIN3 = (CSP_REGISTER_T)(3),
 Selete_EXI_PIN4 = (CSP_REGISTER_T)(4),
 Selete_EXI_PIN5 = (CSP_REGISTER_T)(5),
 Selete_EXI_PIN6 = (CSP_REGISTER_T)(6),
 Selete_EXI_PIN7 = (CSP_REGISTER_T)(7),
 Selete_EXI_PIN8 = (CSP_REGISTER_T)(8),
 Selete_EXI_PIN9 = (CSP_REGISTER_T)(9),
 Selete_EXI_PIN10 = (CSP_REGISTER_T)(10),
 Selete_EXI_PIN11 = (CSP_REGISTER_T)(11),
 Selete_EXI_PIN12 = (CSP_REGISTER_T)(12),
 Selete_EXI_PIN13 = (CSP_REGISTER_T)(13),
 Selete_EXI_PIN14 = (CSP_REGISTER_T)(14),
 Selete_EXI_PIN15 = (CSP_REGISTER_T)(15),
 Selete_EXI_PIN16 = (CSP_REGISTER_T)(16),
 Selete_EXI_PIN17 = (CSP_REGISTER_T)(17),
 Selete_EXI_PIN18 = (CSP_REGISTER_T)(18),
 Selete_EXI_PIN19 = (CSP_REGISTER_T)(19)
}GPIO_EXIPIN_TypeDef;





typedef enum
{
 INPUT_MODE_SETECTED_CMOS = 0,
 INPUT_MODE_SETECTED_TTL1 = 1,
 INPUT_MODE_SETECTED_TTL2 = 2
}INPUT_MODE_SETECTED_TypeDef;
# 190 "include/apt32f102_gpio.h"
extern void GPIOA0_DeInit(GPIO_Pin_TypeDef GPIO_Pin);
extern void GPIO_DeInit(void);
extern void GPIO_TTL_COSM_Selecte(CSP_GPIO_T *GPIOx,unsigned char bit,INPUT_MODE_SETECTED_TypeDef INPUT_MODE_SETECTED_X);
extern void GPIO_Init2(CSP_GPIO_T *GPIOx,GPIO_byte_TypeDef byte,unsigned int val);
extern void GPIO_InPutOutPut_Disable(CSP_GPIO_T *GPIOx,unsigned char PinNum);
extern void GPIO_Init(CSP_GPIO_T *GPIOx,unsigned char PinNum,GPIO_Dir_TypeDef Dir);
extern void GPIO_Write_Low(CSP_GPIO_T *GPIOx,unsigned char bit);
extern void GPIO_Write_High(CSP_GPIO_T *GPIOx,unsigned char bit);
extern void GPIO_MODE_Init(CSP_GPIO_T *GPIOx,GPIO_Mode_TypeDef IO_MODE,unsigned int val);
extern unsigned char GPIO_Read_Status(CSP_GPIO_T *GPIOx,unsigned char bit);
extern unsigned char GPIO_Read_Output(CSP_GPIO_T *GPIOx,unsigned char bit);
extern void GPIO_Reverse(CSP_GPIO_T *GPIOx,unsigned char bit);
extern void GPIO_Set_Value(CSP_GPIO_T *GPIOx,unsigned char bitposi,unsigned char bitval);
extern void GPIOA0_EXI_Init(GPIO_EXI_TypeDef EXI_IO);
extern void GPIOB0_EXI_Init(GPIO_EXI_TypeDef EXI_IO);
extern void GPIO_EXI_EN(CSP_GPIO_T *GPIOx,GPIO_EXI_TypeDef EXI_IO);
extern void GPIO_Debug_IO_12_13(void);
extern void GPIO_Debug_IO_01_02(void);
extern void GPIO_IntGroup_Set(GPIO_Group_TypeDef IO_MODE , unsigned char PinNum , GPIO_EXIPIN_TypeDef EXIPIN_x);
extern void GPIOA00_Set_ResetPin();
extern void GPIO_PullHigh_Init(CSP_GPIO_T *GPIOx,unsigned char bit);
extern void GPIO_PullLow_Init(CSP_GPIO_T *GPIOx,unsigned char bit);
extern void GPIO_PullHighLow_DIS(CSP_GPIO_T *GPIOx,unsigned char bit);
extern void GPIO_OpenDrain_EN(CSP_GPIO_T *GPIOx,unsigned char bit);
extern void GPIO_OpenDrain_DIS(CSP_GPIO_T *GPIOx,unsigned char bit);
extern void GPIO_DriveStrength_EN(CSP_GPIO_T *GPIOx,unsigned char bit);
extern void GPIO_DriveStrength_DIS(CSP_GPIO_T *GPIOx,unsigned char bit);
# 3 "../Codes/LCD/../Y36_LCD_horizontal/chip.h" 2
# 1 "include/apt32f102_adc.h" 1
# 46 "include/apt32f102_adc.h"
typedef enum
{
 ADC12_SWRST = ((CSP_REGISTER_T)(0x01ul << 0)),
 ADC12_ADCEN = ((CSP_REGISTER_T)(0x01ul << 1)),
 ADC12_ADCDIS = ((CSP_REGISTER_T)(0x01ul << 2)),
 ADC12_START = ((CSP_REGISTER_T)(0x01ul << 3)),
 ADC12_STOP = ((CSP_REGISTER_T)(0x01ul << 4)),
 ADC12_SWTRG = ((CSP_REGISTER_T)(0x01ul << 5)),
 ADC12_AVGEN = ((CSP_REGISTER_T)(0x01ul << 12)),
 ADC12_AVGDIS = ((CSP_REGISTER_T)(0x00ul << 12)),
}ADC12_Control_TypeDef;



typedef enum
{

 ADC12_EOC = ((CSP_REGISTER_T)(0x01ul << 0)),
 ADC12_READY = ((CSP_REGISTER_T)(0x01ul << 1)),
 ADC12_OVR = ((CSP_REGISTER_T)(0x01ul << 2)),
 ADC12_CMP0H = ((CSP_REGISTER_T)(0x01ul << 4)),
 ADC12_CMP0L = ((CSP_REGISTER_T)(0x01ul << 5)),
 ADC12_CMP1H = ((CSP_REGISTER_T)(0x01ul << 6)),
 ADC12_CMP1L = ((CSP_REGISTER_T)(0x01ul << 7)),
 ADC12_SEQ_END0 = ((CSP_REGISTER_T)(0x01ul << 16)),
 ADC12_SEQ_END1 = ((CSP_REGISTER_T)(0x01ul << 17)),
 ADC12_SEQ_END2 = ((CSP_REGISTER_T)(0x01ul << 18)),
 ADC12_SEQ_END3 = ((CSP_REGISTER_T)(0x01ul << 19)),
 ADC12_SEQ_END4 = ((CSP_REGISTER_T)(0x01ul << 20)),
 ADC12_SEQ_END5 = ((CSP_REGISTER_T)(0x01ul << 21)),
 ADC12_SEQ_END6 = ((CSP_REGISTER_T)(0x01ul << 22)),
 ADC12_SEQ_END7 = ((CSP_REGISTER_T)(0x01ul << 23)),
 ADC12_SEQ_END8 = ((CSP_REGISTER_T)(0x01ul << 24)),
 ADC12_SEQ_END9 = ((CSP_REGISTER_T)(0x01ul << 25)),
 ADC12_SEQ_END10 = ((CSP_REGISTER_T)(0x01ul << 26)),
 ADC12_SEQ_END11 = ((CSP_REGISTER_T)(0x01ul << 27)),
 ADC12_SEQ_END12 = ((CSP_REGISTER_T)(0x01ul << 28)),
 ADC12_SEQ_END13 = ((CSP_REGISTER_T)(0x01ul << 29)),
 ADC12_SEQ_END14 = ((CSP_REGISTER_T)(0x01ul << 30)),
 ADC12_SEQ_END15 = ((CSP_REGISTER_T)(0x01ul << 31)),

 ADC12_ADCENS = ((CSP_REGISTER_T)(0x01ul << 8)),
 ADC12_CTCVS = ((CSP_REGISTER_T)(0x01ul << 9))
}
ADC12_IMR_TypeDef;



typedef enum
{
 ADC_CLK_CR = ((CSP_REGISTER_T)(0x01ul << 1)),
 ADC12_IPIDCODE_MASK = ((CSP_REGISTER_T)(0x3FFFFFFul << 4)),
 ADC_DEBUG_MODE = ((CSP_REGISTER_T)(0x01ul << 31))
}
ADC12_CLK_TypeDef;



typedef enum
{
 ADC12_12BIT = 1,
 ADC12_10BIT = 0,
 ADC12_10BITor12BIT = ((CSP_REGISTER_T)(0x01ul<<31))
}ADC12_10bitor12bit_TypeDef;



typedef enum
{
 One_shot_mode = 0,
 Continuous_mode = 1,
 CONTCV = (CSP_REGISTER_T)0x01<<31
}ADC12_ConverMode_TypeDef;



typedef enum
{
 NBRCMP0_TypeDef = 0,
 NBRCMP1_TypeDef = 1
}
ADC12_NBRCMPx_TypeDef;



typedef enum
{
 NBRCMPX_L_TypeDef = 0,
 NBRCMPX_H_TypeDef = 1
}
ADC12_NBRCMPx_HorL_TypeDef;



typedef enum
{
  ADC12_ADCIN0 = (CSP_REGISTER_T)(0x0ul),
  ADC12_ADCIN1 = (CSP_REGISTER_T)(0x1ul),
  ADC12_ADCIN2 = (CSP_REGISTER_T)(0x2ul),
  ADC12_ADCIN3 = (CSP_REGISTER_T)(0x3ul),
  ADC12_ADCIN4 = (CSP_REGISTER_T)(0x4ul),
  ADC12_ADCIN5 = (CSP_REGISTER_T)(0x5ul),
  ADC12_ADCIN6 = (CSP_REGISTER_T)(0x6ul),
  ADC12_ADCIN7 = (CSP_REGISTER_T)(0x7ul),
  ADC12_ADCIN8 = (CSP_REGISTER_T)(0x8ul),
  ADC12_ADCIN9 = (CSP_REGISTER_T)(0x9ul),
  ADC12_ADCIN10 = (CSP_REGISTER_T)(0x0Aul),
  ADC12_ADCIN11 = (CSP_REGISTER_T)(0x0Bul),
  ADC12_ADCIN12 = (CSP_REGISTER_T)(0x0Cul),
  ADC12_ADCIN13 = (CSP_REGISTER_T)(0x0Dul),
  ADC12_ADCIN14 = (CSP_REGISTER_T)(0x0Eul),
  ADC12_ADCIN15 = (CSP_REGISTER_T)(0x0Ful),
# 170 "include/apt32f102_adc.h"
  ADC12_INTVREF = (CSP_REGISTER_T)(0x1Cul),
  ADC12_DIV4_VDD = (CSP_REGISTER_T)(0x1Dul),
  ADC12_VSS = (CSP_REGISTER_T)(0x1Eul),
}
ADC12_InputSet_TypeDef;




typedef enum
{
  ADC12_CV_RepeatNum1 = (CSP_REGISTER_T)(0x0ul<<8)|(0x0ul<<13),
  ADC12_CV_RepeatNum2 = (CSP_REGISTER_T)(0x1ul<<8)|(0x1ul<<13),
  ADC12_CV_RepeatNum4 = (CSP_REGISTER_T)(0x2ul<<8)|(0x2ul<<13),
  ADC12_CV_RepeatNum8 = (CSP_REGISTER_T)(0x3ul<<8)|(0x3ul<<13),
  ADC12_CV_RepeatNum16 = (CSP_REGISTER_T)(0x4ul<<8)|(0x4ul<<13),
  ADC12_CV_RepeatNum32 = (CSP_REGISTER_T)(0x5ul<<8)|(0x5ul<<13),
  ADC12_CV_RepeatNum64 = (CSP_REGISTER_T)(0x6ul<<8)|(0x6ul<<13),
  ADC12_CV_RepeatNum128 = (CSP_REGISTER_T)(0x7ul<<8)|(0x7ul<<13),
  ADC12_CV_RepeatNum256 = (CSP_REGISTER_T)(0x8ul<<8)|(0x8ul<<13),
  ADC12_CV_RepeatNum512 = (CSP_REGISTER_T)(0x9ul<<8)|(0x9ul<<13)
}ADC12_CV_RepeatNum_TypeDef;




typedef enum
{
 ADC12_VREFP_VDD_VREFN_VSS = 0,
 ADC12_VREFP_EXIT_VREFN_VSS = 1,
 ADC12_VREFP_FVR2048_VREFN_VSS = 2,
 ADC12_VREFP_FVR4096_VREFN_VSS = 3,

 ADC12_VREFP_INTVREF1000_VREFN_VSS = 5,
 ADC12_VREFP_VDD_VREFN_EXIT = 6,
 ADC12_VREFP_EXIT_VREFN_EXIT = 7,
 ADC12_VREFP_FVR2048_VREFN_EXIT = 8,
 ADC12_VREFP_FVR4096_VREFN_EXIT = 9,

 ADC12_VREFP_INTVREF1000_VREFN_EXIT = 11
}ADC12_VREFP_VREFN_Selected_TypeDef;

extern void ADC12_RESET_VALUE(void);
extern void ADC12_Control(ADC12_Control_TypeDef ADC12_Control_x );
extern void ADC12_ConfigInterrupt_CMD( ADC12_IMR_TypeDef ADC_IMR_X , FunctionalStatus NewState);
extern unsigned char ADC12_Read_IntEnStatus(ADC12_IMR_TypeDef EnStatus_bit);
extern void ADC12_CLK_CMD(ADC12_CLK_TypeDef ADC_CLK_CMD , FunctionalStatus NewState);
extern void ADC12_Software_Reset(void);
extern void ADC12_CMD(FunctionalStatus NewState);
extern void ADC12_ready_wait(void);
extern void ADC12_EOC_wait(void);
extern void ADC12_SEQEND_wait(U8_T val);
extern U16_T ADC12_DATA_OUPUT(U16_T Data_index );
extern void ADC12_Configure_Mode(ADC12_10bitor12bit_TypeDef ADC12_BIT_SELECTED , ADC12_ConverMode_TypeDef ADC12_ConverMode , U8_T ADC12_PRI, U8_T adc12_SHR , U8_T ADC12_DIV , U8_T NumConver );
extern void ADC12_Configure_VREF_Selecte(ADC12_VREFP_VREFN_Selected_TypeDef ADC12_VREFP_X_VREFN_X );
extern void ADC12_CompareFunction_set(U8_T ConverNum_CM0 , U8_T ConverNum_CM1 , U16_T CMP0_data , U16_T CMP1_data );
extern void ADC12_ConversionChannel_Config(ADC12_InputSet_TypeDef ADC12_ADCINX ,
      ADC12_CV_RepeatNum_TypeDef CV_RepeatTime, ADC12_Control_TypeDef AVG_Set, U8_T SEQx);
extern U8_T ADC12_Compare_statue(ADC12_NBRCMPx_TypeDef ADC12_NBRCMPx, ADC12_NBRCMPx_HorL_TypeDef ADC12_NBRCMPx_HorL);
extern void ADC_Int_Enable(void);
extern void ADC_Int_Disable(void);
extern void ADC12_CONFIG(void);
extern void adc12_SHR_SET(U8_T adc12_SHR);
# 4 "../Codes/LCD/../Y36_LCD_horizontal/chip.h" 2
# 1 "../Codes/LCD/../Y36_LCD_horizontal/../LCD/HT162X_Pin.h" 1
# 25 "../Codes/LCD/../Y36_LCD_horizontal/../LCD/HT162X_Pin.h"
void HT162X_PinConfig(void);
void HT162X_CS_Handled(unsigned char val);
void HT162X_RD_Handled(unsigned char val);
void HT162X_WR_Handled(unsigned char val);
void HT162X_Data_Handled(unsigned char val);
# 5 "../Codes/LCD/../Y36_LCD_horizontal/chip.h" 2




typedef enum
{
    ADC_Switch = 0,
    ADC_Oven = 1,
    ADC_Meat1 = 2,
    ADC_Meat2 = 3,
    ADC_BAT_V = 4,
    ADC_INTVREF_1v = 5,

    ADC_Length = 6
}ADC_Seq_E;
# 56 "../Codes/LCD/../Y36_LCD_horizontal/chip.h"
void SystemConfig(void);
unsigned int SamplingSingle(unsigned int channel);
void PinConfig_LCD(void);
# 19 "../Codes/LCD/../Y36_LCD_horizontal/App_Main.h" 2
# 1 "../Codes/LCD/../Y36_LCD_horizontal/../LCD/UI.h" 1

# 1 "../Codes/LCD/../Y36_LCD_horizontal/../LCD/HT162X_Parts.h" 1
# 3 "../Codes/LCD/../Y36_LCD_horizontal/../LCD/UI.h" 2
# 1 "e:\\apt_landscape_mode\\apt32f1023_new\\codes\\y36_lcd_horizontal\\app_main.h" 1
# 4 "../Codes/LCD/../Y36_LCD_horizontal/../LCD/UI.h" 2
# 1 "e:\\apt_landscape_mode\\apt32f1023_new\\codes\\mcu_mold\\mcu_f_c_convert.h" 1





typedef enum
{
    Unit_F = 1,
    Unit_C = 2,
    Unit_F_C = 3,
}Grill_Unit_E;

int32_t F_Convert_C(int32_t);
# 5 "../Codes/LCD/../Y36_LCD_horizontal/../LCD/UI.h" 2
# 13 "../Codes/LCD/../Y36_LCD_horizontal/../LCD/UI.h"
typedef enum
{
    Alarm_None = 0,
    Alarm_Timer1,
    Alarm_RTD,
    Alarm_ProbeA_Enable,
    Alarm_ProbeA_Action,
    Alarm_ProbeB_Enable,
    Alarm_ProbeB_Action,
}UI_Alarm_E;
typedef enum
{
    UI_OFF = Char_OFF,
    UI_ON = Char_ON,
}UI_State_E;
typedef enum
{
    UI_None = 0,
    UI_RTD,
    UI_RTDSettings,
    UI_Timer_Hour,
    UI_Timer_Minute,
    UI_ProbeA,
    UI_ProbeB,
    UI_PSet,
}UI_Number_E;
typedef enum
{
    Shine_All = 0,
    Shine_Init,
    Shine_OFF,
    Shine_ON,
}Shine_E;
typedef enum
{
    Alart_None = 0,
    Alart_Action,
}Alart_Type;
typedef struct
{
    unsigned int Actual;
    unsigned int Settings;
    unsigned char State;
    Alart_Type Alart_State;
}UI_Param_Typedef;
typedef struct
{
    UI_Param_Typedef Timer1;
    unsigned char Pset;

    Shine_E Shine_Colon;
    Shine_E Shine_WIFI;
    unsigned char ShineCtrl;

    UI_State_E State_TempCtrl;
    UI_Number_E State_Operation;
    UI_State_E ICO_WIFI;
    UI_State_E ICO_Bluetooth;
    UI_State_E ICO_Auger;
    UI_State_E ICO_Fan;
    UI_State_E ICO_Heating;
    UI_State_E ICO_Error;
    UI_State_E ICO_Cell;

    UI_Alarm_E Alarm_Timer;
    UI_Alarm_E Alarm_RTD;
    UI_Alarm_E Alarm_ProbeA;
    UI_Alarm_E Alarm_ProbeB;

    Grill_Unit_E Grill_Unit;
    UI_State_E UI_Show;
}UI_System_S;
extern UI_System_S UI_System;

extern uint16_t UI_Refresh_Count;


void UI_Encoder_KeyLong(void);
void UI_Encoder_Key(void);
void UI_Encoder_R(void);
void UI_Encoder_L(void);
void UI_Clock(void);
void UI_Init(void);
void UI_Main(void);
void UI_Shine_Exit(void);
void UI_TempCtrl_Start(void);
void UI_TempCtrl_Stop(void);

UI_State_E UI_Grill_Normal(void);
uint16_t ConvertC(uint16_t tempF);
# 20 "../Codes/LCD/../Y36_LCD_horizontal/App_Main.h" 2
# 1 "../Codes/LCD/../Y36_LCD_horizontal/Flash_WR.h" 1




void Flash_Write(void);
void Flash_Read(void);
# 21 "../Codes/LCD/../Y36_LCD_horizontal/App_Main.h" 2

extern unsigned char error_flag;
extern unsigned int global_set_temp;
extern uint16_t global_RTD_temp;
extern uint16_t global_RTD_1_temp;
extern uint16_t global_RTD_2_temp;
extern uint16_t global_setting_timmer;


void App_Init(void);
void App_Main(void);
void SysTick_IRQHandler(void);
# 4 "../Codes/LCD/UI.h" 2
# 1 "../Codes/LCD/../MCU_Mold/MCU_F_C_Convert.h" 1
# 5 "../Codes/LCD/UI.h" 2
# 4 "../Codes/LCD/HT162X_Parts.c" 2
# 1 "../Codes/LCD/HT162X.h" 1

# 1 "../Codes/LCD/HT162X_Lcd.h" 1

# 1 "../Codes/Y36_LCD_horizontal/temperature_control_sub_module/../temperature_control_sub_module/TempADC.h" 1
# 3 "../Codes/LCD/HT162X_Lcd.h" 2





typedef enum
{
    Lcd_NotShine = 0,
    Lcd_Shine,
    Lcd_DelayShine_Trigger,
    Lcd_DelayShine,
}Lcd_State_E;

typedef struct
{
    uint16_t Get;
    uint16_t Write;

}Lcd_TempSet_S;
typedef struct
{
    uint16_t val;
    Lcd_State_E isShine;
}Lcd_TempAct_S;
extern Lcd_TempAct_S Lcd_TempAct;
typedef struct
{
    Lcd_TempSet_S Hour;
    Lcd_TempSet_S Minute;
    uint16_t Second;
    unsigned int Downcount;
    unsigned int Setting;
    unsigned char Enable;
    void (*Hour_Add_Handle)(void);
    void (*Hour_Sub_Handle)(void);
    void (*Minute_Add_Handle)(void);
    void (*Minute_Sub_Handle)(void);
    Lcd_State_E isShine_Hour;
    Lcd_State_E isShine_Minute;
}Lcd_Timer_S;
extern Lcd_Timer_S Lcd_Timer;
extern Lcd_State_E Lcd_Timer_Colon_IsShow;
typedef struct
{
    uint16_t Temp;
    uint16_t Temp_Settings;
    Lcd_State_E isShine;
}Lcd_Probe1_S;
extern Lcd_Probe1_S Lcd_Probe1;
typedef struct
{
    uint16_t Temp;
    uint16_t Temp_Settings;
    Lcd_State_E isShine;
}Lcd_Probe2_S;
extern Lcd_Probe2_S Lcd_Probe2;

extern void (*Lcd_TempAct_AutoShine_Handle)(void);

void HT162X_Lcd_10ms(void);
# 3 "../Codes/LCD/HT162X.h" 2







typedef enum
{
    HT_Seg_0,
    HT_Seg_1,
    HT_Seg_2,
    HT_Seg_3,
    HT_Seg_4,
    HT_Seg_5,
    HT_Seg_6,
    HT_Seg_7,
    HT_Seg_8,
    HT_Seg_9,
    HT_Seg_10,
    HT_Seg_11,
    HT_Seg_12,
    HT_Seg_13,
    HT_Seg_14,
    HT_Seg_15,
}HT_Seg_E;



typedef enum
{
    Cad_Pin_1 = HT_Seg_4,
    Cad_Pin_2 = HT_Seg_5,
    Cad_Pin_3 = HT_Seg_6,
    Cad_Pin_4 = HT_Seg_7,
    Cad_Pin_5 = HT_Seg_8,
    Cad_Pin_6 = HT_Seg_9,
    Cad_Pin_7 = HT_Seg_10,
    Cad_Pin_8 = HT_Seg_11,
    Cad_Pin_9 = HT_Seg_12,
    Cad_Pin_10 = HT_Seg_13,
    Cad_Pin_11 = HT_Seg_14,
    Cad_Pin_12 = HT_Seg_15,
    Cad_Pin_13 = HT_Seg_3,
    Cad_Pin_14 = HT_Seg_2,
    Cad_Pin_15 = HT_Seg_1,
    Cad_Pin_16 = HT_Seg_0,
}Cad_Pin_E;

typedef enum
{
    Cad_Com1 = 0x01,
    Cad_Com2 = 0x02,
    Cad_Com3 = 0x04,
    Cad_Com4 = 0x08,
    Cad_Com5 = 0x10,
    Cad_Com6 = 0x20,
    Cad_Com7 = 0x40,
    Cad_Com8 = 0x80,
}Cad_Com_E;

typedef struct
{
    Cad_Com_E Cad_Com;
    Cad_Pin_E Cad_Pin;
    Char_E Cad_Dis;
}Cad_Dat_S;


typedef struct
{
    void (*HT_CS_Handled)(unsigned char);
    void (*HT_WR_Handled)(unsigned char);
    void (*HT_RD_Handled)(unsigned char);
    void (*HT_Data_Handled)(unsigned char);
}HT162X_Device_S;
typedef struct
{
    unsigned char address;
    unsigned char data;
}HT_Data_S;

void HT162X_Init(void);
void HT162X_RAM_Tx(void);
void HT162X_Reset(void);

void HT_RAM_Setting(Cad_Dat_S Cad_Dat);
# 5 "../Codes/LCD/HT162X_Parts.c" 2

# 1 "../Codes/LCD/HT162X_Parts_Num.h" 1

# 1 "../Codes/LCD/UI.h" 1



# 1 "../Codes/LCD/../MCU_Mold/MCU_F_C_Convert.h" 1
# 5 "../Codes/LCD/UI.h" 2
# 3 "../Codes/LCD/HT162X_Parts_Num.h" 2




extern const unsigned char Timer_seg1[8][2];
extern const unsigned char Timer_seg2[8][2];
extern const unsigned char Timer_seg3[8][2];
extern const unsigned char Timer_seg4[8][2];
extern const unsigned char Timer_seg5[8][2];
extern const unsigned char PSet_seg1[8][2];
extern const unsigned char TempAct_seg1[8][2];
extern const unsigned char TempAct_seg2[8][2];
extern const unsigned char TempAct_seg3[8][2];
extern const unsigned char Probe1_seg1[8][2];
extern const unsigned char Probe1_seg2[8][2];
extern const unsigned char Probe1_seg3[8][2];
extern const unsigned char Probe2_seg1[8][2];
extern const unsigned char Probe2_seg2[8][2];
extern const unsigned char Probe2_seg3[8][2];



void Lcd_NumShow(UI_Number_E t,int32_t param);
void Lcd_NumShow_Shine(UI_Number_E t,unsigned int param);
# 7 "../Codes/LCD/HT162X_Parts.c" 2
# 1 "../Codes/LCD/../MCU_Mold/MCU_Time.h" 1





typedef struct
{
    unsigned int hour;
    unsigned int minute;
    unsigned int seconds;
}MCU_Time_T;

void TotalConvertTime(MCU_Time_T* time, unsigned int total);
unsigned int TimeConvertTotal(MCU_Time_T tm);
# 8 "../Codes/LCD/HT162X_Parts.c" 2
# 1 "../Codes/LCD/../MCU_Mold/MCU_AbstractTube.h" 1







typedef enum
{
    Tube_A = 0x01,
    Tube_B = 0x02,
    Tube_C = 0x04,
    Tube_D = 0x08,
    Tube_E = 0x10,
    Tube_F = 0x20,
    Tube_G = 0x40,
    Tube_H = 0x80,
}Tube_Abstract_E;
typedef enum
{
    Tube_0 = (Tube_A | Tube_B | Tube_C | Tube_D | Tube_E | Tube_F),
    Tube_1 = (Tube_B | Tube_C),
    Tube_2 = (Tube_A | Tube_B | Tube_D | Tube_E | Tube_G),
    Tube_3 = (Tube_A | Tube_B | Tube_C | Tube_D | Tube_G),
    Tube_4 = (Tube_B | Tube_C | Tube_F | Tube_G),
    Tube_5 = (Tube_A | Tube_C | Tube_D | Tube_F | Tube_G),
    Tube_6 = (Tube_A | Tube_C | Tube_D | Tube_E | Tube_F | Tube_G),
    Tube_7 = (Tube_A | Tube_B | Tube_C),
    Tube_8 = (Tube_A | Tube_B | Tube_C | Tube_D | Tube_E | Tube_F | Tube_G),
    Tube_9 = (Tube_A | Tube_B | Tube_C | Tube_D | Tube_F | Tube_G),
    Tube_10 = 0,
    Tube_11 = Tube_G,
    Tube_12 = (Tube_A | Tube_E | Tube_F | Tube_G),
    Tube_13 = (Tube_A | Tube_D | Tube_E | Tube_F | Tube_G),
    Tube_14 = (Tube_E | Tube_G),
    Tube_15 = (Tube_C | Tube_E | Tube_G),
    Tube_16 = (Tube_C | Tube_D | Tube_E | Tube_G),
    Tube_17 = (Tube_A | Tube_B | Tube_E | Tube_F | Tube_G),
    Tube_18 = (Tube_A | Tube_F | Tube_G | Tube_C | Tube_D),
    Tube_19 = (Tube_F | Tube_E | Tube_G | Tube_B | Tube_C),
    Tube_20 = (Tube_F | Tube_E | Tube_D ),
    Tube_21 = (Tube_A | Tube_B | Tube_C | Tube_D | Tube_E | Tube_F),
    Tube_22 = (Tube_E),
    Tube_23 = (Tube_C | Tube_D | Tube_E),
}Tube_Encoder_E;
extern const Tube_Encoder_E Tube_Encoder[24];
# 9 "../Codes/LCD/HT162X_Parts.c" 2


void Factory_Lcd_F(unsigned char t, Char_E dis)
{
    Cad_Dat_S Cad_Dat;

    Cad_Dat.Cad_Com = Cad_Com8;

 if(t == 0)
 {
  if(Temp_Param.oven_Err != Pt_Normal)
  {
   Cad_Dat.Cad_Dis = Char_OFF;
   Cad_Dat.Cad_Pin = Cad_Pin_10;
   HT_RAM_Setting(Cad_Dat);
  }
  else
  {
   Cad_Dat.Cad_Dis = dis;
   Cad_Dat.Cad_Pin = Cad_Pin_10;
   HT_RAM_Setting(Cad_Dat);
  }
 }
 else if(t == 1)
 {
  if(Temp_Param.probe1_Err != Pt_Normal)
  {
   Cad_Dat.Cad_Dis = Char_OFF;
   Cad_Dat.Cad_Pin = Cad_Pin_6;
   HT_RAM_Setting(Cad_Dat);
  }
  else
  {
   Cad_Dat.Cad_Dis = dis;
   Cad_Dat.Cad_Pin = Cad_Pin_6;
   HT_RAM_Setting(Cad_Dat);
  }
 }
 else if(t == 2)
 {
  if(Temp_Param.probe2_Err != Pt_Normal)
  {
   Cad_Dat.Cad_Dis = Char_OFF;
   Cad_Dat.Cad_Pin = Cad_Pin_13;
   HT_RAM_Setting(Cad_Dat);
  }
  else
  {
   Cad_Dat.Cad_Dis = dis;
   Cad_Dat.Cad_Pin = Cad_Pin_13;
   HT_RAM_Setting(Cad_Dat);
  }
 }
}
void Factory_Lcd_C(unsigned char t,Char_E dis)
{
    Cad_Dat_S Cad_Dat;

 if(t == 0)
 {
  Cad_Dat.Cad_Com = Cad_Com8;
  if(Temp_Param.oven_Err != Pt_Normal)
  {
   Cad_Dat.Cad_Dis = Char_OFF;
   Cad_Dat.Cad_Pin = Cad_Pin_12;
   HT_RAM_Setting(Cad_Dat);
  }
  else
  {
   Cad_Dat.Cad_Dis = dis;
   Cad_Dat.Cad_Pin = Cad_Pin_12;
   HT_RAM_Setting(Cad_Dat);
  }
 }
 else if(t == 1)
 {
  if(Temp_Param.probe1_Err != Pt_Normal)
  {
   Cad_Dat.Cad_Dis = Char_OFF;
   Cad_Dat.Cad_Pin = Cad_Pin_5;
   HT_RAM_Setting(Cad_Dat);
  }
  else
  {
   Cad_Dat.Cad_Dis = dis;
   Cad_Dat.Cad_Pin = Cad_Pin_5;
   HT_RAM_Setting(Cad_Dat);
  }
 }
 else if(t == 2)
 {
  if(Temp_Param.probe2_Err != Pt_Normal)
  {
   Cad_Dat.Cad_Dis = Char_OFF;
   Cad_Dat.Cad_Pin = Cad_Pin_1;
   HT_RAM_Setting(Cad_Dat);
  }
  else
  {
   Cad_Dat.Cad_Dis = dis;
   Cad_Dat.Cad_Pin = Cad_Pin_1;
   HT_RAM_Setting(Cad_Dat);
  }
 }
}


void Lcd_F(Char_E dis)
{
    Cad_Dat_S Cad_Dat;

    Cad_Dat.Cad_Com = Cad_Com8;

    if((Temp_Param.oven_Err != Pt_Normal) || (Prime_Enable > 0))
 {
  Cad_Dat.Cad_Dis = Char_OFF;
  Cad_Dat.Cad_Pin = Cad_Pin_10;
  HT_RAM_Setting(Cad_Dat);
 }
 else
 {
  Cad_Dat.Cad_Dis = dis;
  Cad_Dat.Cad_Pin = Cad_Pin_10;
  HT_RAM_Setting(Cad_Dat);
 }
 if(Temp_Param.probe1_Err != Pt_Normal)
 {
  Cad_Dat.Cad_Dis = Char_OFF;
  Cad_Dat.Cad_Pin = Cad_Pin_6;
  HT_RAM_Setting(Cad_Dat);
 }
 else
 {
  Cad_Dat.Cad_Dis = dis;
  Cad_Dat.Cad_Pin = Cad_Pin_6;
  HT_RAM_Setting(Cad_Dat);
 }
 if(Temp_Param.probe2_Err != Pt_Normal)
 {
  Cad_Dat.Cad_Dis = Char_OFF;
  Cad_Dat.Cad_Pin = Cad_Pin_13;
  HT_RAM_Setting(Cad_Dat);
 }
 else
 {
  Cad_Dat.Cad_Dis = dis;
  Cad_Dat.Cad_Pin = Cad_Pin_13;
  HT_RAM_Setting(Cad_Dat);
 }
}
void Lcd_C(Char_E dis)
{
    Cad_Dat_S Cad_Dat;

    Cad_Dat.Cad_Com = Cad_Com8;
    if((Temp_Param.oven_Err != Pt_Normal) || (Prime_Enable > 0))
 {
  Cad_Dat.Cad_Dis = Char_OFF;
  Cad_Dat.Cad_Pin = Cad_Pin_12;
  HT_RAM_Setting(Cad_Dat);
 }
 else
 {
  Cad_Dat.Cad_Dis = dis;
  Cad_Dat.Cad_Pin = Cad_Pin_12;
  HT_RAM_Setting(Cad_Dat);
 }
 if(Temp_Param.probe1_Err != Pt_Normal)
 {
  Cad_Dat.Cad_Dis = Char_OFF;
  Cad_Dat.Cad_Pin = Cad_Pin_5;
  HT_RAM_Setting(Cad_Dat);
 }
 else
 {
  Cad_Dat.Cad_Dis = dis;
  Cad_Dat.Cad_Pin = Cad_Pin_5;
  HT_RAM_Setting(Cad_Dat);
 }
 if(Temp_Param.probe2_Err != Pt_Normal)
 {
  Cad_Dat.Cad_Dis = Char_OFF;
  Cad_Dat.Cad_Pin = Cad_Pin_1;
  HT_RAM_Setting(Cad_Dat);
 }
 else
 {
  Cad_Dat.Cad_Dis = dis;
  Cad_Dat.Cad_Pin = Cad_Pin_1;
  HT_RAM_Setting(Cad_Dat);
 }
}
void Lcd_Wifi(Char_E dis)
{
    Cad_Dat_S Cad_Dat;

    Cad_Dat.Cad_Com = Cad_Com5;
    Cad_Dat.Cad_Pin = Cad_Pin_6;
    Cad_Dat.Cad_Dis = dis;
    HT_RAM_Setting(Cad_Dat);

    Cad_Dat.Cad_Com = Cad_Com4;
    HT_RAM_Setting(Cad_Dat);

    Cad_Dat.Cad_Com = Cad_Com3;
    HT_RAM_Setting(Cad_Dat);

    Cad_Dat.Cad_Com = Cad_Com2;
    HT_RAM_Setting(Cad_Dat);

    Cad_Dat.Cad_Com = Cad_Com1;
    HT_RAM_Setting(Cad_Dat);
}
void Lcd_Cook(Char_E dis)
{
    Cad_Dat_S Cad_Dat;

    Cad_Dat.Cad_Com = Cad_Com8;
    Cad_Dat.Cad_Pin = Cad_Pin_7;
    Cad_Dat.Cad_Dis = dis;
    HT_RAM_Setting(Cad_Dat);
}
void Lcd_PSet(Char_E dis)
{
    Cad_Dat_S Cad_Dat;

    Cad_Dat.Cad_Com = Cad_Com8;
    Cad_Dat.Cad_Pin = Cad_Pin_4;
    Cad_Dat.Cad_Dis = dis;
    HT_RAM_Setting(Cad_Dat);

    Cad_Dat.Cad_Pin = Cad_Pin_11;
    HT_RAM_Setting(Cad_Dat);
}
void Lcd_Actual(Char_E dis)
{
    Cad_Dat_S Cad_Dat;

    Cad_Dat.Cad_Com = Cad_Com8;
    Cad_Dat.Cad_Pin = Cad_Pin_8;
    Cad_Dat.Cad_Dis = dis;
    HT_RAM_Setting(Cad_Dat);
}
void Lcd_Timer_Colon(Char_E dis)
{
    Cad_Dat_S Cad_Dat;

    Cad_Dat.Cad_Com = Cad_Com8;
    Cad_Dat.Cad_Pin = Cad_Pin_9;
    Cad_Dat.Cad_Dis = dis;

    HT_RAM_Setting(Cad_Dat);
}
void Lcd_Probe1_Show(Char_E dis)
{
    Cad_Dat_S Cad_Dat;

    Cad_Dat.Cad_Com = Cad_Com6;
    Cad_Dat.Cad_Pin = Cad_Pin_6;
    Cad_Dat.Cad_Dis = dis;
    HT_RAM_Setting(Cad_Dat);

    Cad_Dat.Cad_Com = Cad_Com7;
    HT_RAM_Setting(Cad_Dat);
}
void Lcd_Probe2_Show(Char_E dis)
{
    Cad_Dat_S Cad_Dat;

    Cad_Dat.Cad_Com = Cad_Com8;
    Cad_Dat.Cad_Pin = Cad_Pin_2;
    Cad_Dat.Cad_Dis = dis;
    HT_RAM_Setting(Cad_Dat);

    Cad_Dat.Cad_Pin = Cad_Pin_3;
    HT_RAM_Setting(Cad_Dat);
}

void Lcd_Parts_Init(void)
{
    Lcd_Wifi(Char_OFF);
    Lcd_Timer_Colon(Char_ON);

    Lcd_NumShow(UI_RTDSettings,165);
    Lcd_NumShow(UI_RTD,72);
    Lcd_NumShow(UI_Timer_Hour,0);
    Lcd_NumShow(UI_Timer_Minute,0);
    Lcd_NumShow(UI_ProbeA,0);
    Lcd_NumShow(UI_ProbeB,0);
}
void Lcd_Parts_NotShow(void)
{







}
